package com.project.service.ipml;

import com.project.bean.ProgressBean;
import com.project.bean.ProjectBean;
import com.project.mapper.IProgressMapper;
import com.project.service.IProgressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class ProgressServiceImpl implements IProgressService {
    @Autowired
    private IProgressMapper mapper;

    @Override
    public List<ProjectBean> findNotFinish() {
        return mapper.findNotFinish();
    }

    @Override
    public void updateFinishDate(Integer id) {
        mapper.updateFinishDate(id);
    }

    @Override
    public void addEmployee(ProgressBean progressBean) {
        mapper.addEmployee(new ProgressBean());
    }

    @Override
    public void projectDeliver(Integer projectId) {
        mapper.projectDeliver(projectId);
    }
}
